<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0"/>
    <meta charset="UTF-8" />
    <title>证件办理进度</title>

    <link rel="stylesheet" href="/css/weui.css"/>
    <link rel="stylesheet" href="/css/main.css"/>


    <script src="/js/vue.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/jquery-3.3.1.min.js"></script>

    <style>
        body {
            background-color: #f0f0f0;
        }

        .progress {
            background: white;
            box-shadow: 0 1px 2px 1px rgba(51, 51, 51, 0.07);
            margin: 10px;

        }

        .progress_row {
            height: 11vw;
            padding: 0 18px;
            display: flex;
            flex-direction: row;
        }

        .progress_title {
            font-size: 18px;
            font-size: 18 px;
            color: #000068;
            line-height: 11vw;
        }

        .progress_item {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .progress_item_title {
            flex: 1;
            font-size: 12px;
            font-size: 12 px;
            color: #000068;
            display: flex;
            flex-direction: column;
        }

        .progress_item_value {
            flex: 2;
            font-size: 16x;
            font-size: 16 px;
            color: #333333;
            display: flex;
            flex-direction: column;
        }
        .hidden_div {
            display: none;
        }


    </style>
</head>
<body>
<div id="app">

    <div class="progress"
         v-for="p in progressList">
        <div class="progress_row progress_title">
            {{p.paperTypeName}}
        </div>
        <div class="progress_row">
            <div class="progress_item">
                <span class="progress_item_title">业务编号</span>
                <span class="progress_item_value">{{p.ywbh}}</span>
            </div>
        </div>
        <div class="progress_row">
            <div class="progress_item">
                <span class="progress_item_title">受理日期</span>
                <span class="progress_item_value">{{p.slrq}}</span>
            </div>
            <div class="progress_item">
                <span class="progress_item_title">办证进度</span>
                <span class="progress_item_value">{{p.bzjd_text}}</span>
            </div>
        </div>
        <div v-bind:class="['progress_row',{'hidden_div':p.emsdh==''}]">
            <div class="progress_item">
                <span class="progress_item_title">EMS单号</span>
                <span class="progress_item_value">{{p.emsdh}}</span>
            </div>
        </div>


    </div>
    <div v-bind:class="['weui-loadmore','weui-loadmore_line',{'hidden_div':loadMoreDisplay}]">
        <span class="weui-loadmore__tips">暂无数据</span>
    </div>

</div>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            progressList: []
        },
        created: function () {
            var that = this;
            $.post("/paper/progressList", {}, function (result) {
                that.progressList = result;
            });
        },
        computed: {
            loadMoreDisplay:function () {
                return this.progressList.length!=0;
            }
        }
    });

</script>
</body>
</html>